package com.lei.eduservice.feign.impl;

import com.lei.eduservice.feign.VodClient;
import com.lei.utils.Result;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by IntelliJ
 * Author:熊磊
 */
@Component
//熔断实现
public class VodClientHystrix implements VodClient {
    @Override
    public Result deleteVideo(String videoId) {
        return Result.error().message("删除视频失败");
    }

    @Override
    public Result deleteVideoBatchIds(List<String> videoIdList) {
        return Result.error().message("删除多个视频出错");
    }
}
